package com.jmlee.service.impl;

import com.jmlee.cache.CateCache;
import com.jmlee.pojo.Category;
import com.jmlee.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description TODO
 * @Author jmLee
 * @Date 2021/3/7 19:46
 * @Version 1.0
 */
@Service
public class CategoryServiceImpl implements CategoryService {


    @Autowired
    private CateCache cateCache;



    @Override
    public List<Category> getAllRootCategory() {

        List<Category> rootCates = cateCache.getRootCates();

        return rootCates;
    }

    @Override
    public List getAllCatList() {

        List<Object> allCates = cateCache.getAllCates();

        return allCates;
    }


}
